package com.lkd.controller;

import com.lkd.dto.RegionDto;
import com.lkd.dto.VmDto;
import com.lkd.entity.Node;
import com.lkd.entity.VendingMachine;
import com.lkd.service.INodeService;
import com.lkd.service.IVendingMachineService;
import com.lkd.vo.NodeDetailVo;
import com.lkd.vo.NodeVo;
import com.lkd.vo.PageBean;
import com.lkd.vo.VmVo;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.time.LocalDateTime;
import java.util.List;

@RestController
@RequiredArgsConstructor
@RequestMapping("/api/vm-service/vm")
public class VmController {

    @Autowired
    private IVendingMachineService vendingMachineService;

    @GetMapping("search")
    public PageBean<VmVo> search(VmDto vmDto) {
        return vendingMachineService.findList(vmDto);
    }




}
